from django.shortcuts import render

# Create your views here.
from django.urls import path
from apps.orders.views import OrderAddView,OrderInfoView
from apps.orders.views import OrderAcceptRejectView,OrderCommentView

urlpatterns = [
    # 添加订单
    path('api/v1.0/orders',OrderAddView.as_view()),
    # 获取订单列表
    path('api/v1.0/orders/',OrderInfoView.as_view()),
    # path('api/v1.0/orders/<role_str>',OrderInfoView.as_view()),
    # 接单和拒单
    path('api/v1.0/orders/<order_id>/status',OrderAcceptRejectView.as_view()),
    # 评价订单
    path('api/v1.0/orders/<order_id>/comment',OrderCommentView.as_view()),

]